import aiohttp
import asyncio

# https://docs.aiohttp.org/en/stable/

url = ''


async def main():
    async with aiohttp.ClientSession() as session:
        async with session.get('http://localhost:8888') as response:
            print('Status:', response.status)
            print('Content-type', response.headers['content-type'])

            html = await response.text()
            print('Body:', html)


if __name__ == '__main__':
    asyncio.run(main())
